Look for NEWS in order to find etc/ rather than GNU.
authorRob Browning <rlb@defaultvalue.org>
Tue, 5 Apr 2011 03:46:29 +0000 (22:46 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 8 Sep 2012 22:21:39 +0000 (17:21 -0500)
Emacs will now look for NEWS in order to find etc/ rather than GNU.

Since Debian doesn't include GNU in the Debian packages (the common
licenses are in /usr/share/common-licenses), Emacs will now look for
NEWS to find the etc directory instead of GNU.

Provided-by: Sven Joachim <svenjoac@gmx.de>
Originally-reported-by: Bernhard Michler <Boregard@gmx.net>
Date: Mon, 28 Apr 2008 11:20:23 +0200
Added-by: Rob Browning <rlb@defaultvalue.org>
Status: Debian specific

src/callproc.c

index d3ca7ebac957562757f9220b89bc5d7d8aa6f506..5bbb14567d6b0e1c6fc9a680bf2cc9baf36efa45 100644 (file)
@@ -1571,14 +1571,14 @@ init_callproc (void)
 
       srcdir = Fexpand_file_name (build_string ("../src/"),
                                  build_string (PATH_DUMPLOADSEARCH));
-      tem = Fexpand_file_name (build_string ("GNU"), Vdata_directory);
+      tem = Fexpand_file_name (build_string ("NEWS"), Vdata_directory);
       tem1 = Ffile_exists_p (tem);
       if (!NILP (Fequal (srcdir, Vinvocation_directory)) || NILP (tem1))
        {
          Lisp_Object newdir;
          newdir = Fexpand_file_name (build_string ("../etc/"),
                                      build_string (PATH_DUMPLOADSEARCH));
-         tem = Fexpand_file_name (build_string ("GNU"), newdir);
+         tem = Fexpand_file_name (build_string ("NEWS"), newdir);
          tem1 = Ffile_exists_p (tem);
          if (!NILP (tem1))
            Vdata_directory = newdir;